<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>表单验证DEMO By wangking</title>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/easy_validator.pack.js"></script>
<script type="text/javascript" src="js/jquery.bgiframe.min.js"></script>
<link  href="css/validate.css" rel="stylesheet" type="text/css" />
</head>

<body>
<h1>Ajax validation demo</h1>
<p>参与讨论：<a href="http://wangking717.javaeye.com/blog/769021" target="_blank">http://wangking717.javaeye.com/blog/769021</a></p>
<p>假设数据库中存在的用户： wk110&nbsp;&nbsp;&nbsp; ,&nbsp;&nbsp;sd110,&nbsp;&nbsp;&nbsp; hr110</p>
<hr />
<form name="validateForm" action="http://wangking717.javaeye.com/" method="post">
<table width="800" border="0" class="ad" cellpadding="0" cellspacing="1" bgcolor="#999999" id="testTable">
 　　<tr bgcolor="#ffffff">
		<td align="right" bgcolor="#EEEEEE" width="150px" style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
		用户名1 : 
		</td>
		<td align="left" style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
		<input name="u" type="text" id="flightno" reg="^\w{2}\d+$" url="validate_user.php" tip="游戏商名称[2个字母简写]+用户ID[数字] 如: sd10059"/>
		&nbsp; (普通验证+AJAX验证：普通验证通过后，再进行AJAX验证) 
		</td>
	</tr>
	<tr bgcolor="#ffffff">
		<td align="right" bgcolor="#EEEEEE" width="150px" style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
		用户名 2: 
		</td>
		<td align="left" style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
		<input name="u" type="text" id="flightno22" url="validate_user.php"/> 
		（AJAX验证）</td>
	</tr>
	<tr bgcolor="#ffffff">
	<td colspan="2" align="left" style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
	<input type="submit" name="submit" value=" 提交 " id="submit" />
	</td>
	</tr>
</table>
</form>
</body>
</html>
